#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include<iostream>
using namespace std;
char win[62500];
int main() {
	int w, l;
	for (int i = 0;; ++i) {
		cin >> win[i];
		if (win[i] == 'E')break;
	}
	w = 0;
	l = 0;
	for (int i = 0;; ++i) {
		if (win[i] == 'E')break;
		if (win[i] == 'W')++w;
		if (win[i] == 'L')++l;
		if ((w - l >= 2 || l - w >= 2) && (w >= 11 || l >= 11)) {
			cout << w << ':' << l << endl;
			w = 0;
			l = 0;
		}
	}
	cout << w << ':' << l << endl;
	cout << endl;
	w = 0;
	l = 0;
	for (int i = 0;; ++i) {
		if (win[i] == 'E')break;
		if (win[i] == 'W')++w;
		if (win[i] == 'L')++l;
		if ((w - l >= 2 || l - w >= 2) && (w >= 21 || l >= 21)) {
			cout << w << ':' << l << endl;
			w = 0;
			l = 0;
		}
	}
	cout << w << ':' << l << endl;
	return 0;
}